package com.doubi.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.doubi.entity.Inform;
import com.doubi.mapper.LiketableMapper;
import com.doubi.service.LiketableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class LiketableServiceImpl extends ServiceImpl<LiketableMapper, Inform.Liketable> implements LiketableService {
    @Autowired
    private LiketableMapper liketableMapper;
    @Override
    public int releaseCountLike(Integer releaseId) {
        return liketableMapper.releaseCountLike(releaseId);
    }

    @Override
    public Integer recentlyLike(List<Integer> rList, String dayTime, String dayTime2) {
        return liketableMapper.recentlyLike(rList, dayTime, dayTime2);
    }

    @Override
    public Integer todayLikeNum(List<Integer> rList, String dayTime) {
        return liketableMapper.todayLikeNum(rList, dayTime);
    }
}
